package com.ease.util.events {

   import flash.events.Event;

   /**
    * A general purpose event that will allow to reach context help.
    * <code>helpContextId</code> property.
    */
   public class HelpRequestEvent extends Event {
      /**
       * Context help event type.
       */
      public static const REQUEST_ID:String = "contextHelpRequestEvent";

      /**
       * Help context id.
       */
      public var helpContextId:String;

      /**
       * Initialize an instance of this class
       */
      public function HelpRequestEvent(contextId:String = null):void {
         super(REQUEST_ID);
         this.helpContextId = contextId;
      }

      /**
       * Creates a clone of this event.
       *
       * @return
       *    A clone of this event.
       */
      public override function clone():Event {
         return new HelpRequestEvent(this.helpContextId);
      }
   }
}
